<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>SUOYUEの搜索结果</title>

  <link rel="shortcut icon" th:href="@{/images/favicon.ico}" />
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
  <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
</head>
<body>

<!--导航-->
<nav class="gird-header">
  <div class="ui container">
    <div class="ui inverted secondary stackable menu">
      <h2 class="ui olive header item" style="font-family: STSong">SUOYUEのBLOG</h2>
      <div class="right m-item item m-mobile-hide">
        <a href="#" th:href="@{/}" class="m-item item"><i class="home icon"></i><span th:text="#{index.home}">首页</span></a>
        <a href="#" th:href="@{/types/-1}" class="m-item item"><i class="clone outline icon"></i><span th:text="#{index.type}">分类</span></a>
        <a href="#" th:href="@{/archives}" class="m-item item"><i class="clock icon"></i><span th:text="#{index.time}">时间轴</span></a>
        <a href="#" th:href="@{/message}" class="m-item item"><i class="book icon"></i><span th:text="#{index.messages}">留言板</span></a>
        <a href="#" th:href="@{/echarts}" class="m-item item m-mobile-hide"><i class="table icon"></i><span th:text="#{index.echarts}">数据统计</span></a>
        <a href="#" th:href="@{/friends}" class="m-item item"><i class="pencil alternate icon"></i><span th:text="#{index.links}">友链</span></a>
        <a href="#" th:href="@{/about}" class="m-item item"><i class="info icon"></i><span th:text="#{index.me}">关于我</span></a>
      </div>
      <div class="right m-item item m-mobile-hide">
        <form name="search" action="#" th:action="@{/search}" method="post" target="_blank">
          <div class="ui icon transparent input m-margin-tb-tiny" style="color: white">
            <input style="color: white" type="text" name="query" placeholder="Search....">
            <i onclick="document.forms['search'].submit()" class="search link icon"></i>
          </div>
        </form>
      </div>
    </div>
  </div>
  <!--手机端收起导航栏-->
  <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
    <i class="sidebar icon"></i>
  </a>
</nav>


<!--顶部图片-->
<div class="m-bg-type_outer" style="width: 100%;height: 40%">
  <img src="../static/images/typebg.jpg" th:src="@{/images/typebg.jpg}" alt="" class="ui m-bg image" style="width: 100%;height: 100%">
  <div class="m-bg-class_cover">
    <div class="ui container" style="position: relative ;bottom: -540px;">
      <div class="m-font-size-title m-right-bottom" align="center" style="font-family:'STXingkai'">搜索结果</div>
      <div class="m-font-size-text-init-title m-margin-top" align="center">人生，就是一个不断寻找的过程</div>
    </div>
  </div>
</div>

  <!--中间内容-->
  <div  class="m-margin-">
    <div class="ui container">
      <!--header-->
      <div class="ui top attached segment">
        <div class="ui middle aligned two column grid">
          <div class="column">
            <h3 class="ui teal header">搜索结果</h3>
          </div>
          <div class="right aligned column">
            共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${pageInfo.total}"> 14 </h2> 个
          </div>
        </div>
      </div>

      <!--博文列表-->
      <div class="ui top attached segment" th:each="page: ${pageInfo}">
        <div class="ui padded vertical segment m-padded-tb-large">
          <div class="ui middle aligned mobile reversed stackable grid" >
            <div class="eleven wide column">
              <h3 class="ui header" ><a href="#" th:href="@{/blog/{id}(id=${page.id})}" class="class_outer" target="_blank" th:text="${page.title}">大圣，此去欲何?</a></h3>
              <p class="m-text m-margin-top-max" th:text="${page.description}">戴上金箍，没法爱你；放下金箍，没法保护你。我知道上天不会给我第二次机会，曾经我们说好的永远，原来也仅仅只有，十二画，而已。“大圣，此去欲何?”“踏南天，碎凌霄。”“若一去不回……”“便一去不回” 其实很多时候，我们都是有机会的，最后真正放弃的，是我们自己。......</p>
              <div class="ui grid m-margin-top-max">
                <div class="eleven wide column">
                  <div class="ui mini horizontal link list">
                    <div class="item">
                      <img src="../static/images/me.jpg" th:src="@{/images/me.jpg}" alt="" class="ui avatar image">
                      <div class="content"><a href="#" target="_blank" class="header" th:text="${page.nickname}" >oneStar</a></div>
                    </div>
                    <div class="item">
                      <i class="calendar icon"></i><span th:text="${page.updateTime}">2020-01-01</span>
                    </div>
                    <div class="item">
                      <i class="eye icon"></i> <span th:text="${page.views}">2222</span>
                    </div>
                    <div class="item">
                      <i class="comment outline icon"></i> <span th:text="${page.commentCount}">2222</span>
                    </div>
                  </div>
                </div>
                <div class="right aligned five wide column">
                  <a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${page.typeName}">好文</a>
                </div>
              </div>
            </div>

            <!--博文首图-->
            <div class="five wide column">
              <a href="#" target="_blank">
                <img src="../static/images/backimg1.jpg" th:src="${page.firstPicture}" alt="" class="ui rounded image">
              </a>
            </div>

          </div>
        </div>
      </div>

      <!--分页-->
      <div class="ui bottom attached segment m-opacity stackable grid">
        <div class="three wide column" align="center">
          <a class="item" th:href="@{/search(pageNum=${pageInfo.pageNum}-1)}">上一页</a>
        </div>

        <div class="ten wide column" align="center">
          <p> <span th:text="${pageInfo.pageNum}"></span> / <span th:text="${pageInfo.pages}"></span> </p>
        </div>

        <div class="three wide column" align="center">
          <a class="item" th:href="@{/search(pageNum=${pageInfo.pageNum}+1)}">下一页</a>
        </div>
      </div>

    </div>
  </div>

  <br>
  <br>
<!--底部栏-->
<footer class="ui inverted vertical segment m-padded-tb-massive m-opacity" th:replace="_fragments :: footer">
  <!--容器-->

</footer>
<!--通用script：使用div标签或thymeleaf模板的th:block-->
<th:block th:replace="_fragments :: script">

</th:block>

<script>

  $('.menu.toggle').click(function () {
    $('.m-item').toggleClass('m-mobile-hide');
  });

</script>


<!--看板娘-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/autoload.js"></script>
<!--看板娘-->
<div id="waifu" class="cartoon">
  <div id="waifu-tips" class="cartoonText">好久不见，日子过得好快呢……</div>
  <canvas id="live2d" width="800" height="800" class="cartoonCan"></canvas>
  <div id="waifu-tool">
    <span class="fa fa-lg fa-comment"></span>
    <span class="fa fa-lg fa-paper-plane"></span>
    <span class="fa fa-lg fa-user-circle"></span>
    <span class="fa fa-lg fa-street-view"></span>
    <span class="fa fa-lg fa-camera-retro"></span>
    <span class="fa fa-lg fa-info-circle"></span>
    <span class="fa fa-lg fa-times"></span>
  </div>
</div>


</body>
</html>